package com.authentication.manager;

import org.springframework.security.authentication.AuthenticationCredentialsNotFoundException;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.oauth2.server.authorization.authentication.OAuth2TokenIntrospectionAuthenticationToken;

public class TokenIntrospectionAuthenticationManager implements AuthenticationManager {
    @Override
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {

        if(authentication instanceof OAuth2TokenIntrospectionAuthenticationToken tokenIntrospection){

        }

        throw new AuthenticationCredentialsNotFoundException("不支持的凭证类型");
    }
}
